package com.macro.douyinpay.lenovo;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

public class WebAutomation {
    //lenovo电脑浏览器驱动路径
    static String basePath = "C:\\Program Files\\Google\\Chrome\\Application\\";
    static String driverPath = basePath + "chromedriver.exe";
    static String userDataPath = basePath + "userData";
    static String openUrl = "localhost:3000";
    static WebDriver driver;
    {
        // 设置ChromeDriver的路径
        System.setProperty("webdriver.chrome.driver", driverPath);
        ChromeOptions option = new ChromeOptions();
        option.addArguments("no-sandbox");//禁用沙盒
        driver = new ChromeDriver(option);
        driver.get("localhost:3000");
    }
    public static void main(String[] args) {



    }

}